const {Configuration,DllPlugin} = require('webpack')
const path = require('node:path')
/**
 * @type Configuration
 * dll v5版本已不再推荐
 */
module.exports = {
    mode: 'development',
    entry:{
        vue:  ['vue', 'moment']
    },
    output: {
        path: path.resolve(__dirname, 'dll'),
        filename: '[name].dll.js',
        // library: '[name]',
        clean: true
    },
    plugins: [
        new DllPlugin({
            path: path.resolve(__dirname, 'dll','[name].manifest.json'),
            name: '[name]'
        })
    ]
}